﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>#{softtitle}</title>
<link href="#{path.css}ybb/css/baselist.css?v=#{cssVersion}" rel="stylesheet" type="text/css" />
<link href="#{path.css}ybb/css/all.css?v=#{cssVersion}" rel="stylesheet" type="text/css" />
<link href="#{path.css}ybb/css/formdiv.css?v=#{cssVersion}" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="#{path.js}ybb/js/jquery.js?v=#{jsVersion}"></script>
<script type="text/javascript" src="#{path.js}ybb/js/control.js?v=#{jsVersion}"></script>
<script type="text/javascript" src="#{path.js}ybb/js/form.js?v=#{jsVersion}"></script>
<script type="text/javascript" src="#{path.js}ybb/js/dialog.js?v=#{jsVersion}"></script>
<script type="text/javascript" language="JavaScript">
    var clearcache_filecheck_js_filedirok = "_{clearcache_filecheck_js_filedirok}";
    var clearcache_filecheck_js_filedirno = "_{clearcache_filecheck_js_filedirno}";
    var clearcache_filecheck_js_filedirclose = "_{clearcache_filecheck_js_filedirclose}";
    var digheight = "#{digheight}";
	$(document).ready(function(){
		var h = parseInt(digheight);
		if(document.getElementById("mainbodybottonauto")){
			$('.managebottonadd').css({height:h-40});
		}
		var options = {
			beforeSubmit: formverify,
			success:saveResponse
		}
		$('#filecheck').submit(function() {
			$(this).ajaxSubmit(options);
			return false;
		});
	});




	function formverify(formData, jqForm, options) {
		$('#filecheckmanger').removeClass().addClass('formdiv displaynone');
		$('#filecheckloading').removeClass().addClass('formdiv displaytrue');
		$('#submitbotton').attr('disabled','true');
	}

	function saveResponse(options){
		if (options=='true'){
			alert(clearcache_filecheck_js_filedirok);
			resetwindow();
			return false;
		}else{
			alert(clearcache_filecheck_js_filedirno+options);
			resetwindow();
			return false;
		}
		
	}

	function resetwindow(){
		parent.closeifram();
	}
</script>
</head>

<body>
<form name="filecheck" id="filecheck" method="post" action="#{ActionLink}">
<div id="mainbodybottonauto" class="managebottonadd">
	<div class="maindobycontent">
		<div class="suggestion">
			<span class="sugicon"><span class="strong colorgorning2">_{position_title}</span><span class="padding-left5 colorgorningage">_{clearcache_filecheck_mess}</span></span>
		</div>
		<div class="manageeditdiv_hover" id="filecheckmanger">
			<div class="maneditcontent">
			<table class="formtablewin">
				<tr class="trstyle2">
					<td class="trtitle01" width="20%">_{clear_log_deltype}</td>
					<td class="trtitle02" width="80%">
						<input type="radio" value="1" name="cleartype" checked="checked"/> 清除缓存&nbsp;
                        <input type="radio" value="3" name="cleartype"/> 清除缓存图片&nbsp;
						<input type="radio" value="2" name="cleartype" /> 快速重启
						<input type="radio" value="4" name="cleartype" /> 完全重启
					</td>
				</tr>
				<tr class="trstyle2">
					<td class="trtitle01" width="20%"></td>
					<td class="trtitle02" width="80%">
						<span class="cautiontitle">_{clearcache_filecheck_submit_mess}</span>
					</td>
				</tr>
			</table>
			</div>
		</div>
		<div class="manageeditdiv_hover displaynone" id="filecheckloading">
			<div class="maneditcontent">
				<table class="formtablewin">
					<tr class="trstyle2">
						<td id="center"><img alt="" src="#{path.img}ybb/images/loading_02.gif" /></td>
					</tr>
					<tr class="trstyle2">
						<td id="center">_{clearcache_filecheck_loading}</td>
					</tr>
				</table>
			</div>
		</div>
	</div>
</div>
<div id="downbotton">
	<div id="subbotton">
		<table border="0" width="100%">
			<tr id="bottonsubmit">
				<td id="right"><input type="submit" name="Submit" id="submitbotton" value="_{botton_cear}" class="buttonface" title="_{botton_cear}"/></td>
				<td id="left" class="padding-left5"><input type="reset" name="reset" value="_{botton_cear_reset}" onclick="javascript:resetwindow();" class="buttonface"  title="_{botton_cear_reset}"/></td>
			</tr>
		</table>
	</div>
</div>
</form>
</body>

</html>
